package com.hiwan.platform.util;

import java.util.concurrent.TimeoutException;

public interface BlockingMap<K, V> {

	public void put(K key, V o) throws InterruptedException;

	public V take(K key) throws InterruptedException;

	public V poll(K key, long timeout) throws InterruptedException, TimeoutException;

	public void clear() throws InterruptedException;

	public boolean containsKey(K key);

}